home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / cc1.68k / RCS / local.mk,v < prev    next >
Encoding:
Text File  |  1990-02-16  |  4.0 KB  |  178 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     90.02.16.13.43.16;  author rab;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     89.12.14.17.23.41;  author rab;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     89.11.30.11.45.50;  author rab;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.3
  30. log
  31. @Install in /sprite/lib/gcc instead of /sprite/cmds.
  32. @
  33. text
  34. @#
  35. # This file is included by Makefile.  Makefile is generated automatically
  36. # by mkmf, and this file provides additional local personalization.  The
  37. # variable SYSMAKEFILE is provdied by Makefile;  it's a system Makefile
  38. # that must be included to set up various compilation stuff.
  39. #
  40.  
  41. CFLAGS          += -O -I../cc/sprite -I../cc/dist
  42.  
  43.  
  44. #if !empty(TM:Msun2)
  45. CFLAGS          += -DTARGET_SUN2
  46.  
  47. #elif !empty(TM:Msun2)
  48. CFLAGS          += -DTARGET_SUN3
  49.  
  50. #elif !empty(TM:Msun4)
  51. CFLAGS          += -DTARGET_SUN4 -D__sparc__
  52.  
  53. #elif !empty(TM:Mspur)
  54. CFLAGS          += -DTARGET_SPUR
  55.  
  56. #endif
  57.  
  58. #
  59. # Must add to OBJS for .c files generated below, since the .c files may
  60. # not exist at the time mkmf is run to generate OBJS automatically.
  61. #
  62. OBJS        += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  63.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  64.         $(TM).md/insn-recog.o
  65. CLEANOBJS    += $(TM).md/insn-emit.o $(TM).md/insn-extract.o \
  66.         $(TM).md/insn-output.o $(TM).md/insn-peep.o \
  67.         $(TM).md/insn-recog.o insn-emit.c insn-extract.c \
  68.         insn-output.c insn-peep.c insn-recog.c \
  69.         $(TM).md/gencodes $(TM).md/genconfig $(TM).md/genemit \
  70.         $(TM).md/genextract $(TM).md/genflags $(TM).md/genoutput \
  71.         $(TM).md/genpeep $(TM).md/genrecog
  72.  
  73. #
  74. # Don't automatically back up Gcc stuff:  want to make sure the
  75. # backup version is VERY reliable and don't want two quick buggy
  76. # changes to result in unusable backup.
  77. #
  78. NOBACKUP    = true
  79.  
  80. #include    <$(SYSMAKEFILE)>
  81.  
  82.  
  83. #
  84. # Use headers from the main gcc area, including both stuff from
  85. # the distribution and stuff that's been modified specially for Sprite.
  86. #
  87. .PATH.h        : ../cc/sprite ../cc/dist
  88.  
  89. #
  90. # Target to make various utility programs.  Must run a separate make
  91. # to do this, because the utilities must be compiled to run on $(MACHINE),
  92. # the current machine, instead of $(TM), the machine that the new version
  93. # of the compiler will run on.
  94. #
  95. # MACHINE        ?= sun3
  96.  
  97. utils        : .MAKE .EXEC
  98.     $(MAKE) TM=$(MACHINE) -l $(PASSVARS) -f utils.mk all
  99.  
  100. #
  101. # Targets to create a bunch of source files from the machine
  102. # description.
  103. #
  104. insn-codes.h : md $(MACHINE).md/gencodes
  105.     rm -f insn-codes.h
  106.     $(MACHINE).md/gencodes md > insn-codes.h
  107.  
  108. insn-config.h : md $(MACHINE).md/genconfig
  109.     rm -f insn-config.h
  110.     $(MACHINE).md/genconfig md > insn-config.h
  111.  
  112. insn-emit.c : md $(MACHINE).md/genemit
  113.     rm -f insn-emit.c
  114.     $(MACHINE).md/genemit md > insn-emit.c
  115.  
  116. insn-extract.c : md $(MACHINE).md/genextract
  117.     rm -f insn-extract.c
  118.     $(MACHINE).md/genextract md > insn-extract.c
  119.  
  120. insn-flags.h : md $(MACHINE).md/genflags
  121.     rm -f insn-flags.h
  122.     $(MACHINE).md/genflags md > insn-flags.h
  123.  
  124. insn-output.c: md $(MACHINE).md/genoutput
  125.     rm -f insn-output.c
  126.     $(MACHINE).md/genoutput md >insn-output.c
  127.  
  128. insn-peep.c : md $(MACHINE).md/genpeep
  129.     rm -f insn-peep.c
  130.     $(MACHINE).md/genpeep md > insn-peep.c
  131.  
  132. insn-recog.c : md $(MACHINE).md/genrecog
  133.     rm -f insn-recog.c
  134.     $(MACHINE).md/genrecog md > insn-recog.c
  135.  
  136. $(MACHINE).md/gencodes $(MACHINE).md/genconfig \
  137.       $(MACHINE).md/genemit $(MACHINE).md/genextract \
  138.       $(MACHINE).md/genflags $(MACHINE).md/genoutput \
  139.       $(MACHINE).md/genpeep $(MACHINE).md/genrecog: utils
  140.  
  141. #
  142. # Must add to depend targets for above-generated .h files, since they
  143. # may not exist when make depend is run for first time.
  144. #
  145.  
  146. $(TM).md/dependencies.mk    ! insn-config.h insn-codes.h insn-flags.h
  147.  
  148. #
  149. # Extra files that need to be added to the distribution.
  150. #
  151. DISTFILES   +=   machcode.def make-cc1.com make-cccp.com make.com \
  152.                  md move-if-change rtl.def stab.def utils.mk
  153.  
  154. TMINSTALLDIR    = /sprite/lib/gcc/$(TM).md
  155.  
  156. @
  157.  
  158.  
  159. 1.2
  160. log
  161. @Added a list of special files that need to be included in the distribution.
  162. @
  163. text
  164. @d18 1
  165. a18 1
  166. CFLAGS          += -DTARGET_SUN4
  167. d120 2
  168. @
  169.  
  170.  
  171. 1.1
  172. log
  173. @Initial revision
  174. @
  175. text
  176. @d114 6
  177. @
  178.